/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import java.util.List;
import javax.ejb.Local;
import model.entity.Customer;
import model.entity.Resource;

/**
 *
 * @author dingnangen
 */
@Local
public interface ResourceServiceLocal {
    /**
     *
     * @param userid
     * @param nodeDepth
     * @param parentNodeId
     * @param nodeType
     * @param available
     * @return
     */
    List<Resource> getResourcesbyUserid(int userid, int nodeDepth, int parentNodeId, int nodeType, boolean available);
    /**
     *
     * @param nodeDepth
     * @param parentNodeId
     * @param nodeType
     * @param available
     * @return
     */
    List<Resource> getResourcesbyParentNodeId(int nodeDepth, int parentNodeId, int nodeType, boolean available);

    List<Resource> getResourcesbyLoginname(String loginname, int nodeDepth, int parentNodeId, int nodeType, boolean available);

}
